summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-11-05 16:57:52 +0100
committerGitHub <noreply@github.com>2022-11-05 16:57:52 +0100
commit8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d (patch)
tree92ed14883cedadbbf937d363336ea1f9236789e8
parentMerge pull request #9181 from jbeich/freebsd-qt-parity (diff)
parentvideo_core: Fix scaling graphical regressions for multiple games (diff)
downloadyuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar.gz
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar.bz2
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar.lz
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar.xz
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.tar.zst
yuzu-8baf036cdc1c7b8bc1e6692b4e896cf4cbc6ae6d.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
index 81b6c372d..1aa116cea 100644
--- a/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
+++ b/src/video_core/renderer_vulkan/vk_graphics_pipeline.cpp
@@ -467,7 +467,7 @@ void GraphicsPipeline::ConfigureImpl(bool is_indexed) {
}
void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
- const RenderAreaPushConstant& render_are) {
+ const RenderAreaPushConstant& render_area) {
texture_cache.UpdateRenderTargets(false);
scheduler.RequestRenderpass(texture_cache.GetFramebuffer());
@@ -484,8 +484,8 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
const void* const descriptor_data{update_descriptor_queue.UpdateData()};
scheduler.Record([this, descriptor_data, bind_pipeline, rescaling_data = rescaling.Data(),
is_rescaling, update_rescaling,
- uses_render_area = render_are.uses_render_area,
- render_area_data = render_are.words](vk::CommandBuffer cmdbuf) {
+ uses_render_area = render_area.uses_render_area,
+ render_area_data = render_area.words](vk::CommandBuffer cmdbuf) {
if (bind_pipeline) {
cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_GRAPHICS, *pipeline);
}
@@ -494,7 +494,7 @@ void GraphicsPipeline::ConfigureDraw(const RescalingPushConstant& rescaling,
rescaling_data.data());
if (update_rescaling) {
const f32 config_down_factor{Settings::values.resolution_info.down_factor};
- const f32 scale_down_factor{is_rescaling ? config_down_factor : 2.0f};
+ const f32 scale_down_factor{is_rescaling ? config_down_factor : 1.0f};
cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_ALL_GRAPHICS,
RESCALING_LAYOUT_DOWN_FACTOR_OFFSET, sizeof(scale_down_factor),
&scale_down_factor);